<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Issue SoapServer fault indicating an error</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="soapserver.construct.html">SoapServer::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="soapserver.getfunctions.html">SoapServer::getFunctions</a></div>
 <div class="up"><a href="class.soapserver.html">SoapServer</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="soapserver.fault" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SoapServer::fault</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.0.1)</p><p class="refpurpose"><span class="refname">SoapServer::fault</span> &mdash; <span class="dc-title">Issue SoapServer fault indicating an error</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-soapserver.fault-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>SoapServer::fault</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$code</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$actor</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$details</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
  ]]] )</div>

  <p class="para rdfs-comment">
   Sends a response to the client of the current request indicating an error.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    This can only be called when handling a request.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-soapserver.fault-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">code</code></em></dt>

     <dd>

      <p class="para">
       The error code to return
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">string</code></em></dt>

     <dd>

      <p class="para">
       A brief description of the error
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">actor</code></em></dt>

     <dd>

      <p class="para">
       A string identifying the actor that caused the fault.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">details</code></em></dt>

     <dd>

      <p class="para">
       More details of the fault
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">name</code></em></dt>

     <dd>

      <p class="para">
       The name of the fault. This can be used to select a name from a WSDL file.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-soapserver.fault-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-soapserver.fault-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="soapfault.soapfault.html" class="methodname" rel="rdfs-seeAlso">SoapFault::SoapFault()</a> - SoapFault constructor</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="soapserver.construct.html">SoapServer::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="soapserver.getfunctions.html">SoapServer::getFunctions</a></div>
 <div class="up"><a href="class.soapserver.html">SoapServer</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
